﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<CognisessDA.TestRecord>>"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>TestPage</h2>

    <table>
        <tr>
            <th></th>
            <th>
                Id
            </th>
            <th>
                UserId
            </th>
            <th>
                TestId
            </th>
            <th>
                TestName
            </th>
            <th>
                StepNo
            </th>
            <th>
                IsMajorStep
            </th>
            <th>
                ResponseTime
            </th>
            <th>
                TotalTime
            </th>
            <th>
                Value
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Edit", "Edit", new { id=item.Id }) %> |
                <%= Html.ActionLink("Details", "Details", new { id=item.Id })%> |
                <%= Html.ActionLink("Delete", "Delete", new { id=item.Id })%>
            </td>
            <td>
                <%= Html.Encode(item.Id) %>
            </td>
            <td>
                <%= Html.Encode(item.UserId) %>
            </td>
            <td>
                <%= Html.Encode(item.TestId) %>
            </td>
            <td>
                <%= Html.Encode(item.TestName) %>
            </td>
            <td>
                <%= Html.Encode(item.StepNo) %>
            </td>
            <td>
                <%= Html.Encode(item.IsMajorStep) %>
            </td>
            <td>
                <%= Html.Encode(item.ResponseTime) %>
            </td>
            <td>
                <%= Html.Encode(item.TotalTime) %>
            </td>
            <td>
                <%= Html.Encode(item.Value) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

